package com.zwy.space.mapper;

import com.zwy.space.domain.BlogType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TypeMapper {
    List<BlogType> findAllTypes();

    BlogType getType(int id);

    BlogType getTypeByName(String name);

    int updateType(BlogType type);

    int deleteTypeById(int id);

    int saveType(BlogType type);

    List<BlogType> findAllTypesT();

    Object getTypeT(int id);

    BlogType getTypeByNameT(String name);

    int updateTypeT(BlogType type);

    int deleteTypeByIdT(int id);

    int saveTypeT(BlogType type);
}
